package com.open.capacity.prints.controller;

import com.open.capacity.commons.Result;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;


/**
 * 系统
 *
 * @author
 * @email
 * @date 2020-06-03 22:56:51
 */
@RestController
@RequestMapping("systems")
@Api(tags = "系统属性")
public class SystemController {

    @Value(value = "${system.version:1.0.0}")
    private String version;

    /**
     * 系统版本
     */
    @RequestMapping("/version")
    public Result version() {
        return Result.succeed(version,"获取成功");
    }

}
